package Sort2;

/**
 * Created by sunwei on 2017/10/9
 * Time:9:15
 */
public class Person {
    public String firstName;
    public String lastName;
    public int age;

    public Person(String firstName, String lastName, int age) {
        this.firstName = firstName;
        this.lastName = lastName;
        this.age = age;
    }
    //获取人的姓氏
    public String getFirstName() {
        return firstName;
    }
    //显示人
    public void deployPerson(){
        System.out.println("FirstName:"+firstName);
        System.out.println("LastName:"+lastName);
        System.out.println("Age"+age);
    }
}
